package com.yic.module.qms.controller.admin.inspectinfo.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.LocalDateTime;

import com.alibaba.excel.annotation.ExcelProperty;
import com.yic.framework.excel.core.annotations.DictFormat;
import com.yic.framework.excel.core.convert.DictConvert;


/**
 * 检验单身 Excel VO
 *
 * @author 系统管理员
 */
@Data
public class InspectInfoExcelVO {

    @ExcelProperty("主键")
    private Long id;

    @ExcelProperty("检验单ID")
    private Long inspectId;

    @ExcelProperty(value = "检验类型", converter = DictConvert.class)
    @DictFormat("qms_inspect_type") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private Integer inspectType;

    @ExcelProperty("检验方案ID")
    private Long schemeId;

    @ExcelProperty("检验项目ID")
    private Long entryId;

    @ExcelProperty("检验项目名称")
    private String entryName;

    @ExcelProperty("检验项目代码")
    private String entryCode;

    @ExcelProperty("检验工具")
    private String inspectTools;

    @ExcelProperty("检验方法")
    private String inspectMethod;

    @ExcelProperty("检验标准")
    private String standardStr;

    @ExcelProperty("标准值")
    private BigDecimal standard;

    @ExcelProperty("误差上限")
    private BigDecimal standardUp;

    @ExcelProperty("误差下限")
    private BigDecimal standardDown;

    @ExcelProperty("检验值")
    private BigDecimal reality;

    @ExcelProperty(value = "检验结论", converter = DictConvert.class)
    @DictFormat("qms_inspect_result") // TODO 代码优化：建议设置到对应的 XXXDictTypeConstants 枚举类中
    private Integer inspectResult;

    @ExcelProperty("说明")
    private String remark;

    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
